﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}
<a href="/swagger" target="_blank">Api Doc</a>
<table class="table">
    <thead>
        <tr>
            <th>Id</th>
            <th>Info</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in MPNet6.Server.MPServer.GetDetail())
        {
            <tr>
                <td>@item.Key</td>
                <td>@item.Value</td>
                <td><a href="javascript:;" onclick="Delete('@item.Key')">Delete</a></td>
            </tr>
        }

    </tbody>
</table>
<form id="Form1" method="get">
    <input id="ClientId" type="hidden" asp-for="Id" />
</form>

@section Scripts
    {
    <script>
        function Delete(id) {
            $("#ClientId").val(id);
            $("#Form1").submit();
        }
    </script>
    }
